import Taro from "@tarojs/taro";
import ThemeTriggerSwitch from "../../components/ThemeTriggerSwitch";
import { Button, Container } from "../../components/BUI";

type IProps = {};

interface HomePage {
  props: IProps;
}

const HomePage = () => {
  return (
    <Container fill>
      <ThemeTriggerSwitch />
      <Button
        onClick={() => {
          // Taro.navigateTo({
          Taro.switchTab({
            url: "/pages/feedQRcode/index",
          });
        }}
        width='50%'
        bold
      >
        二维码生成器
      </Button>
    </Container>
  );
};

export default HomePage;
